﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Data;
using CMISLibrary.Libraries;
using BaocaoNPC.Usercontrols.reports;
using BaocaoNPC.common;
using CMISLibrary;
using BCNPCEntities;
using System.Threading;

namespace CMIS2.BaocaoNPC.Usercontrols
{
    /// <summary>
    /// Interaction logic for PC1_BCKD_16.xaml
    /// </summary>
    public partial class PC1_BCKD_16 : UserControl
    {
        /*
        private string strMa_dviqly = UserInfomation.MaDViqly != "" && UserInfomation.MaDViqly != null ? UserInfomation.MaDViqly : "PA...";
        private string strTenDNHap = UserInfomation.TenDNHap != "" && UserInfomation.TenDNHap != null ? UserInfomation.TenDNHap : "PD0400";
        private string strCurrentLibID = MenuInfomation.LibID != "" && MenuInfomation.LibID != null ? MenuInfomation.LibID : "65";
        private string strTen_dviqly = UserInfomation.TenDViQLy != "" && UserInfomation.TenDViQLy != null ? UserInfomation.TenDViQLy : "Dien luc ...";
        private string strTen_dviqly_CT = UserInfomation.TenDViQLy_CT != "" && UserInfomation.TenDViQLy_CT != null ? UserInfomation.TenDViQLy_CT : "Cong ty Dien luc ...";
         * */

        public String strMa_dviqly = NPCUS_DanhMuc.Pglobal.strMa_dviqly != "" && NPCUS_DanhMuc.Pglobal.strMa_dviqly != null ? NPCUS_DanhMuc.Pglobal.strMa_dviqly : "PA";
        public String strTenDNHap = NPCUS_DanhMuc.Pglobal.strTen_dangnhap != "" && NPCUS_DanhMuc.Pglobal.strTen_dangnhap != null ? NPCUS_DanhMuc.Pglobal.strTen_dangnhap : "PA";
        public String strTen_dviqly = NPCUS_DanhMuc.Pglobal.strTen_dviqly != "" && NPCUS_DanhMuc.Pglobal.strTen_dviqly != null ? NPCUS_DanhMuc.Pglobal.strTen_dviqly : "cty..";
        public String strTen_dviqly_CT = NPCUS_DanhMuc.Pglobal.strTen_dviqly_CT != "" && NPCUS_DanhMuc.Pglobal.strTen_dviqly_CT != null ? NPCUS_DanhMuc.Pglobal.strTen_dviqly_CT : "cap tren";

        public Int16 p_thang = 0;
        public Int16 p_nam = 0;
        int rowselect = 0;

        private string stt = "";
        private string ma_so = "";
        private string danh_muc = "";
        private string ghichu = "";
        private Int16 sl_tbc = 0;
        private Decimal p_dg = 0;

        //public Int16 p_1612 = 0;
        //public Int16 p_1613 = 0;
        //public Int16 p_1614A = 0;
        //public Int16 p_1614B = 0;
        //public Int16 p_1615 = 0;
        //public Int16 p_1622 = 0;
        //public Int16 p_1623 = 0;
        //public Int16 p_1624 = 0;
        //public Int16 p_1625A = 0;
        //public Int16 p_1625B = 0;
        //public Int16 p_1632 = 0;
        //public Int16 p_1633 = 0;
        //public Int16 p_1634A = 0;
        //public Int16 p_1634B = 0;
        //public Int16 p_1635 = 0;

        Int16 i16ThangBC = 0;
        Int16 i16NamBC = 0;

        Int16 i16ThangInBC = 0;
        Int16 i16NamInBC = 0;
        String strMa_dviqly_InBC = "";
        String strTen_dviqly_InBC = "";
        String strTen_dviqly_CT_InBC = "";

        int intFormLoad = 0;
        public DataSet ds = new DataSet();
        DataSet ds_BCKD_In = new DataSet();
        DataSet ds_BCKD_QTTH = new DataSet();
        String strInBieuBCKD = "";
        //public String p_madviqly = CMISLibrary.Libraries.UserInfomation.MaDViqly.ToString();


        private void GET_THANGNAM()
        {
            try
            {
                DataSet dsthanglviec = new DataSet();
                //bus_TienichNPC.cls_TienichNPC_bus bus = new cls_TienichNPC_bus();
                //dsthanglviec = bus.get_thang_lviec();
                dsthanglviec = GlobalServices.Service_NPCUS.get_thang_lviec();
                if (dsthanglviec != null && dsthanglviec.Tables.Count > 0)
                {
                    foreach (DataRow dr in dsthanglviec.Tables[0].Rows)
                        if (dr["PHAN_HE"].ToString() == "BC" && dr["MA_DVIQLY"].ToString() == strMa_dviqly)
                        {
                            i16ThangBC = Convert.ToInt16(dr["THANG"]);
                            i16NamBC = Convert.ToInt16(dr["NAM"]);
                        }
                }

            }
            catch
            {
                i16ThangBC = Convert.ToInt16(DateTime.Now.Month);
                i16NamBC = Convert.ToInt16(DateTime.Now.Year);
            }
        }


        public PC1_BCKD_16()
        {
            try
            {
                InitializeComponent();

                btnDanhmuc.IsEnabled = true;
                btnSua.IsEnabled = false;
                btnGhi.IsEnabled = false;
                btnHuy.IsEnabled = false;
                btnIn.IsEnabled = false;
                btnNhapsolieu.IsEnabled = false;

                //enableTextbox(false);
                GET_THANGNAM();


                //InitializeComponent();
                if (i16ThangBC.ToString().Length == 1)
                {
                    dtpThangNam.Text = "0" + i16ThangBC.ToString() + "/" + i16NamBC.ToString();
                    //dtpThangNam_1.Text = "0" + i16ThangBC.ToString() + "/" + i16NamBC.ToString();
                }
                else
                {
                    dtpThangNam.Text = i16ThangBC.ToString() + "/" + i16NamBC.ToString();
                    //dtpThangNam_1.Text = i16ThangBC.ToString() + "/" + i16NamBC.ToString();
                }
            }
            catch (Exception ex)
            { MessageBox.Show(ex.ToString()); }

        }

        private void btnSua_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //dgrBIEU16.Columns[
                dgrBIEU16.Columns[2].IsReadOnly = false;
                dgrBIEU16.Columns[3].IsReadOnly = false;


                btnDanhmuc.IsEnabled = false;
                btnSua.IsEnabled = false;
                btnGhi.IsEnabled = true;
                btnHuy.IsEnabled = true;
                btnIn.IsEnabled = false;
                btnNhapsolieu.IsEnabled = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }

        private void btnGhi_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bool check = false;
                p_thang = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Month);
                p_nam = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Year);

                DataView dv = dgrBIEU16.ItemsSource as DataView;
                DataTable dt = dv.Table;
                //cls_PC1_BCKD_16 cls = new cls_PC1_BCKD_16();                

                //------ kiem tra danh muc -------
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    danh_muc = dt.Rows[i]["DANH_MUC"].ToString();
                    if (danh_muc.Trim() == string.Empty)
                    {
                        MessageBox.Show("Bạn chưa nhập đủ danh mục !", "Thông báo", MessageBoxButton.OK);
                        check = false;
                        break;
                    }
                    else check = true;
                }

                if (check == true)
                {
                    //------- ghi du lieu -------
                    GlobalServices.Service_NPCUS.PC1_BIEU16_DEL(strMa_dviqly, p_thang, p_nam);
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        stt = dt.Rows[i]["STT"].ToString();
                        ma_so = dt.Rows[i]["MA_SO"].ToString();
                        danh_muc = dt.Rows[i]["DANH_MUC"].ToString();
                        ghichu = dt.Rows[i]["GHI_CHU"].ToString();

                        if (dt.Rows[i]["SL_TBC"].ToString().Trim() == string.Empty)
                        {
                            sl_tbc = 0;
                        }
                        else
                        {
                            sl_tbc = Convert.ToInt16(dt.Rows[i]["SL_TBC"]);
                        }
                        if (dt.Rows[i]["DG_TBC"].ToString().Trim() == string.Empty)
                        {
                            p_dg = 0;
                        }
                        else
                        {
                            p_dg = Convert.ToDecimal(dt.Rows[i]["DG_TBC"]);
                        }
                        //bus_TienichNPC.cls_TienichNPC_bus bus = new bus_TienichNPC.cls_TienichNPC_bus();
                        //bus.PC1_BIEU16_IN(strMa_dviqly, p_thang, p_nam, stt, ma_so, danh_muc, sl_tbc, p_dg, ghichu);
                        GlobalServices.Service_NPCUS.PC1_BIEU16_IN(strMa_dviqly, p_thang, p_nam, stt, ma_so, danh_muc, sl_tbc,p_dg, ghichu);
                    }
                    GlobalServices.Service_NPCUS.PC1_BIEU16_UP(strMa_dviqly, p_thang, p_nam);

                    //---------- kiem tra ghi du lieu---------
                    ds.Clear();
                    ds = GlobalServices.Service_NPCUS.select_BCKD16(strTen_dviqly, strTen_dviqly_CT, strMa_dviqly, p_thang, p_nam);
                    if (ds != null)
                    {
                        ds.Tables[0].DefaultView.AllowNew = false;
                        dgrBIEU16.ItemsSource = ds.Tables[0].DefaultView;
                        dgrBIEU16.Columns[2].IsReadOnly = true;
                        dgrBIEU16.Columns[3].IsReadOnly = true;
                        MessageBox.Show("Ghi dữ liệu thành công ! ", "Thông báo", MessageBoxButton.OK);
                        btnDanhmuc.IsEnabled = true;
                        btnSua.IsEnabled = true;
                        btnGhi.IsEnabled = false;
                        btnHuy.IsEnabled = false;
                        btnIn.IsEnabled = true;
                        btnNhapsolieu.IsEnabled = false;
                    }
                    else
                    {
                        MessageBox.Show("Không ghi được dữ liệu !", "Thông báo", MessageBoxButton.OK);
                        return;
                    }
                }

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }

        private void btnIn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                DataSet dsIn = new DataSet();

                //cls_PC1_BCKD_16 cls = new cls_PC1_BCKD_16();
                //p_nam = 0;
                //p_thang = 0;
                p_thang = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Month);
                p_nam = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Year);
                //GlobalServices.Service_NPCUS.PC1_BIEU16_UP(strMa_dviqly, p_thang, p_nam);
                dsIn = GlobalServices.Service_NPCUS.select_BCKD16(strTen_dviqly, strTen_dviqly_CT, strMa_dviqly, p_thang, p_nam);
                //ds.Tables[0].TableName = "danhsachIn";

                if (dsIn != null)
                {
                    rpt_PC1_BCKD16 rpt = new rpt_PC1_BCKD16();
                    rpt.SetDataSource(dsIn.Tables[0]);
                    //string[] dd;
                    //string[] bb;
                    //dd = new string[] { "NguoiLapBieu", "KyGhiRoHoVaTen_NLB", "Chucvukyduyet", "KyGhiRoHoVaTen_CVKD" };
                    //bb = new string[] { "A", "B", "C", "D" };
                    //rpt.SetParameterValue("nguoilapbieu", strTenDNHap);                    
                    //UtilReport.RptManager.showReportToWin(this, rpt, strMa_dviqly, dd, dd);
                    UtilReportOMS.RptManager.showReportToWin(this, rpt, strMa_dviqly_InBC, new string[] { "Formula1", "Formula2", "Formula3" }, new string[] { "Formula1", "Formula2", "Formula3" }, "CMIS2 - Report: Báo cáo NPC");
                    dsIn.Clear();
                    //var test = dsIn.Tables.Count.ToString();
                }
                else
                {
                    MessageBox.Show("Tháng " + p_thang + " năm " + p_nam + " không có dữ liệu !", "Thông báo", MessageBoxButton.OK);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }


        private void btnHuy_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                btnDanhmuc.IsEnabled = true;
                btnSua.IsEnabled = false;
                btnGhi.IsEnabled = false;
                btnHuy.IsEnabled = false;
                btnIn.IsEnabled = false;
                btnNhapsolieu.IsEnabled = false;

                dgrBIEU16.Columns[2].IsReadOnly = true;
                dgrBIEU16.Columns[3].IsReadOnly = true;

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }



        private void btnDanhmuc_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (ds != null)
                {
                    ds.Clear();
                }

                //cls_PC1_BCKD_16 cls = new cls_PC1_BCKD_16();
                p_thang = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Month);
                p_nam = Convert.ToInt16(dtpThangNam.SelectedDate.Value.Year);
                ds = GlobalServices.Service_NPCUS.select_BCKD16(strTen_dviqly, strTen_dviqly_CT, strMa_dviqly, p_thang, p_nam);
                //ds.Tables[0].TableName = "danhsachIn";

                if (ds == null) //---- chua co du lieu cua thang --> nhap danh muc --------
                {
                    if (p_thang == i16ThangBC && p_nam == i16NamBC)
                    {
                        //MessageBox.Show("Tháng " + p_thang + " năm " + p_nam + " chưa có dữ liệu !", "Thông báo", MessageBoxButton.OK);
                        ds = GlobalServices.Service_NPCUS.select_BCKD16(strTen_dviqly, strTen_dviqly_CT, "DM", 0, 0);
                        ds.Tables[0].DefaultView.AllowNew = false;
                        dgrBIEU16.ItemsSource = ds.Tables[0].DefaultView;
                        dgrBIEU16.Columns[2].IsReadOnly = true;
                        dgrBIEU16.Columns[3].IsReadOnly = true;

                        btnDanhmuc.IsEnabled = true;
                        btnSua.IsEnabled = false;
                        btnGhi.IsEnabled = false;
                        btnHuy.IsEnabled = false;
                        btnIn.IsEnabled = true;
                        btnNhapsolieu.IsEnabled = true;
                    }
                    else
                    {
                        btnDanhmuc.IsEnabled = true;
                        btnSua.IsEnabled = false;
                        btnGhi.IsEnabled = false;
                        btnHuy.IsEnabled = false;
                        btnIn.IsEnabled = false;
                        btnNhapsolieu.IsEnabled = false;
                        MessageBox.Show("Không phải tháng báo cáo, tháng báo cáo là: " + i16ThangBC + "/" + i16NamBC, "Thông báo", MessageBoxButton.OK);
                    }



                }
                else
                {      //--------- da co du lieu --------  
                    if (p_thang == i16ThangBC && p_nam == i16NamBC)
                    {
                        btnSua.IsEnabled = true;
                    }
                    else btnSua.IsEnabled = false;

                    btnDanhmuc.IsEnabled = true;
                    btnGhi.IsEnabled = false;
                    btnHuy.IsEnabled = false;
                    btnIn.IsEnabled = true;
                    btnNhapsolieu.IsEnabled = false;

                    ds.Tables[0].DefaultView.AllowNew = false;
                    dgrBIEU16.ItemsSource = ds.Tables[0].DefaultView;
                    dgrBIEU16.Columns[2].IsReadOnly = true;
                    dgrBIEU16.Columns[3].IsReadOnly = true;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString() + " Kiểm tra lại kết nối ! ");
            }
        }

        private void btnNhapsolieu_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                dgrBIEU16.Columns[2].IsReadOnly = false;
                dgrBIEU16.Columns[3].IsReadOnly = false;

                btnDanhmuc.IsEnabled = false;
                btnSua.IsEnabled = false;
                btnGhi.IsEnabled = true;
                btnHuy.IsEnabled = true;
                btnIn.IsEnabled = false;
                btnNhapsolieu.IsEnabled = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

        private void dgrBIEU16_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                rowselect = dgrBIEU16.SelectedIndex;

            }
            catch
            {

            }
        }

        private void dgrBIEU16_KeyUp(object sender, KeyEventArgs e)
        {
            try
            {
                int index = dgrBIEU16.SelectedIndex;
                DataRowView dgr = dgrBIEU16.SelectedItem as DataRowView;
                DataRow[] dr = ds.Tables["IN_BCKD"].Select();
                

                if (e.Key == Key.Enter)
                {
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString()== "1612")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1613")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1614")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1622")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1623")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1624")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1625")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1632")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1633")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                    if (dgrBIEU16.CurrentColumn == dgrBIEU16.Columns[3] && dr[rowselect]["MA_SO"].ToString() == "1634")
                    {
                        if (Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()) != 0)
                        {
                            dr[rowselect].SetField("DG_TBC", Math.Round(Convert.ToDecimal(dr[rowselect]["SL_TBC"].ToString()) * 100 / Convert.ToDecimal(dr[rowselect - 1]["SL_TBC"].ToString()), 2));
                            dgr.BeginEdit();
                        }
                        else
                        {
                            dr[rowselect].SetField("DG_TBC",0); 
                            dgr.BeginEdit();
                        }
                    }
                }
        
            catch
            {

            }
        }

    }
}
